import { axios } from '@/utils/request'
// 发薪订单
export function getTablePage(parameter) {
  return axios({
    url: '/sys/salary/queryOrderPageList',
    method: 'post',
    data: parameter
  })
}
export function getSalaryExport(parameter) {
  return axios({
    url: '/sys/salary/exportOrderList',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function queryParkListByEnterpriseId(id) {
  return axios({
    url: '/sys/salary/queryParkListByEnterpriseId/' + id,
    method: 'get'
  })
}
export function queryAccountByParkId(id) {
  return axios({
    url: '/sys/salary/queryAccountByParkId/' + id,
    method: 'get',
  })
}
export function queryCooperateList(id) {
  return axios({
    url: '/sys/salary/queryCooperateList/' + id,
    method: 'get'
  })
}
export function createOrder(parameter) {
  return axios({
    url: '/sys/salary/createOrder',
    method: 'post',
    data: parameter
  })
}
export function getSubmitOrder(parameter) {
  return axios({
    url: '/sys/salary/submitOrder',
    method: 'post',
    data: parameter
  })
}
export function cancelOrder(parameter) {
  return axios({
    url: '/sys/salary/cancelOrder',
    method: 'post',
    data: parameter
  })
}
export function deleteOrder(parameter) {
  return axios({
    url: '/sys/salary/deleteOrder',
    method: 'post',
    data: parameter
  })
}
// 发薪明细
export function getTableDetailPage(parameter) {
  return axios({
    url: '/sys/salary/querySalaryDetailPage',
    method: 'post',
    data: parameter
  })
}
export function getTablePayDetailPage(parameter) {
  return axios({
    url: '/sys/salaryBackfill/queryByBackFillDetailListFillId',
    method: 'post',
    data: parameter
  })
}
export function importExcelData(parameter) {
  return axios({
    url: '/sys/salaryBackfill/importExcelData',
    method: 'post',
    data: parameter
  })
}
export function downTemplate(parameter) {
  return axios({
    url: '/sys/salaryDynamicField/downTemplate',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function importSalaryDetail(parameter) {
  return axios({
    url: '/sys/salary/importSalaryDetail',
    method: 'post',
    data: parameter
  })
}
export function batchDeleteSalary(parameter) {
  return axios({
    url: '/sys/salary/batchDelete',
    method: 'post',
    data: parameter
  })
}
export function queryFields() {
  return axios({
    url: '/sys/salaryDynamicField/queryFields',
    method: 'get',
  })
}
export function exportExcelDetails(parameter) {
  return axios({
    url: '/sys/salary/exportExcelDetails',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function exportImportExcelDetails(parameter) {
  return axios({
    url: '/sys/salary/exportImportExcelDetails',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
// 补缴服务费
export function getTablePayPage(parameter) {
  return axios({
    url: '/sys/salaryBackfill/queryByOrderId',
    method: 'post',
    data: parameter
  })
}
export function serviceSubmit(parameter) {
  return axios({
    url: '/sys/salaryBackfill/submit',
    method: 'post',
    data: parameter
  })
}

// 发薪账单
export function orderPay(parameter) {
  return axios({
    url: '/sys/salary/orderPay',
    method: 'post',
    data: parameter
  })
}
export function rejectOrder(parameter) {
  return axios({
    url: '/sys/salary/rejectOrder',
    method: 'post',
    data: parameter
  })
}
export function cmbDclismod(id) {
  return axios({
    url: '/sys/salary/cmbDclismod/' + id,
    method: 'get'
  })
}

// 发薪导入明细
export function getImportDetailPageQuery(parameter) {
  return axios({
    url: '/sys/salary/pageListQuery',
    method: 'post',
    data: parameter
  })
}
export function salaryConfirmOrder(parameter) {
  return axios({
    url: '/sys/salary/confirmOrder',
    method: 'post',
    data: parameter
  })
}
export function deleteBatchByImportIds(parameter) {
  return axios({
    url: '/sys/salary/deleteBatchByImportIds',
    method: 'post',
    data: parameter
  })
}
export function queryImportCount(parameter) {
  return axios({
    url: '/sys/salary/queryImportCount',
    method: 'post',
    data: parameter
  })
}